package com.example.studentcompetitionplatform.mapper;

import com.example.studentcompetitionplatform.entity.Competitions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JingSaiMapper {
//新增
    Integer insertCompetitions(Competitions competitions);
//删除
    Integer deleteCompetitions(Competitions competitions);
//修改
    Integer editCompetitions(Competitions competitions);
//分页数据
    //查询competition_id的数据的总条数
    Integer findCompetitionTotal(Integer competitionId);
    //
    List<Competitions> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("competitionId") Integer competitionId);
}
